﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CoursePack
{
    [Serializable]
    public class Department
    {
        #region Data
        private int m_Id;
        private string m_Name;
        private Faculty m_Faculty;
        private List<DegreeDescription> m_Degrees;
        #endregion

        public Department(int _Id, string _Name,Faculty _Faculty)
        {
            this.m_Id = _Id;
            this.m_Name = _Name;
            this.m_Degrees = new List<DegreeDescription>();

            this.m_Faculty = _Faculty;
        }

        #region Accessors
        public int Id
        {
            get { return this.m_Id; }
        }

        public string Name
        {
            get { return this.m_Name; }
        }

        public override string ToString()
        {
            return "  -" + this.m_Name;
        }

        public Faculty Faculty
        {
            get { return this.m_Faculty; }
        }

        public List<DegreeDescription> Degrees
        {
            get { return this.m_Degrees; }
        }
        #endregion

    }
}
